package TransactionImplementation

//更改邮件事务
//引入类
import (
	"SalaryPayment/AbstractTransaction"
	"SalaryPayment/Model"
	"SalaryPayment/ModelImplementation"
)

//结构体
type ChangeMailTransaction struct {
	AbstractTransaction.ChangeMethodTransaction
	itsAddress string
}

//支付方法
func (ch *ChangeMailTransaction) GetMethod() Model.PaymentMethod {
	//返回邮件方法
	return ModelImplementation.NewMailMethod(ch.itsAddress)
}